<?php
/**
 * Menu class for PhpDocGtk
 * 
 * @author hcderaad
 * @package PhpDocGtk
 */
class PhpDocGtk_Menu extends GtkMenuBar {
	
	/**
	 * The file menu
	 * 
	 * @var GtkMenu
	 */
	protected $_menuFile;
	
	/**
	 * The options menu
	 * 
	 * @var GtkMenu
	 */
	protected $_menuOptions;
	
	/**
	 * The about menu
	 * 
	 * @var GtkMenu
	 */
	protected $_menuAbout;
	
	/**
	 * Constructor
	 */
	public function __construct() {
		parent::__construct();
		$this->append($itemFile = new GtkMenuItem('_' . PhpDocGtk::t('File')));
		$itemFile->set_submenu($this->_menuFile = new GtkMenu());
		
		$this->append($itemOptions = new GtkMenuItem('_' . PhpDocGtk::t('Options')));
		$itemOptions->set_submenu($this->_menuOptions = new GtkMenu());
		
		$this->append($itemAbout = new GtkMenuItem('_' . PhpDocGtk::t('About')));
		$itemAbout->set_submenu($this->_menuAbout = new GtkMenu());
	}
	
}
?>